import request from '@/utils/request'


export function categoryIndex(params) {
    return request({
        url: `/medical_record_tpl/categoryIndex`,
        method: 'GET',
        params
    })
}

export function categorySave(params) {
    return request({
        url: `/medical_record_tpl/categorySave`,
        method: 'POST',
        params
    })
}

export function tplIndex(params) {
    return request({
        url: `/medical_record_tpl/tplIndex`,
        method: 'GET',
        params
    })
}
export function tplSaveV2(params) {
    return request({
        url: `/medical_record_tpl/tplSaveV2`,
        method: 'post',
        params
    })
}
//模板删除
export function deleteTpl(params) {
    return request({
        url: `medical_record_tpl/deleteTpl`,
        method: 'POST',
        params,
    })
}
//模板删除
export function saveTpl(params) {
    return request({
        url: `/medical_record_tpl/saveTpl`,
        method: 'POST',
        params,
    })
}